<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Admin extends Authenticatable
{
    protected $guarded=[];
    // 退出时，设置rememberTokenName的属性为空
    protected $rememberTokenName = '';

    public function attachment(){
        return $this->hasMany(Attachment::class,'user_id','id');
    }
}
